home *** CD-ROM | disk | FTP | other *** search
/ Game Gateway (USA) / Game Gateway (USA).bin / Internet Kit / data.z / netscape.exe / RCDATA / ABOUTPLG next >
Text File  |  1996-08-15  |  2KB  |  78 lines

  1. <HTML>
  2. <HEAD>
  3. <TITLE>About Plug-ins</TITLE>
  4. </HEAD>
  5. <BODY>
  6. <SCRIPT language="javascript">
  7.  
  8. <!-- JavaScript to enumerate and display all installed plug-ins -->
  9.  
  10. numPlugins = navigator.plugins.length;
  11.  
  12. if (numPlugins > 0)
  13.     document.writeln("<b><font size=+3>Installed plug-ins</font></b><br>");
  14. else
  15.     document.writeln("<b><font size=+2>No plug-ins are installed.</font></b><br>");
  16.  
  17. document.writeln("For more information on Netscape plug-ins, <A HREF=http://home.netscape.com/comprod/products/navigator/version_2.0/plugins/index.html>click here</A>.<p><hr>");
  18.  
  19. for (i = 0; i < numPlugins; i++)
  20. {
  21.     plugin = navigator.plugins[i];
  22.     
  23.     document.write("<center><font size=+1><b>");
  24.     document.write(plugin.name);
  25.     document.writeln("</b></font></center><br>");
  26.     
  27.     document.writeln("<dl>");
  28.     document.writeln("<dd>File name:");
  29.     document.write(plugin.filename);
  30.     document.write("<dd><br>");
  31.     document.write(plugin.description);
  32.     document.writeln("</dl>");
  33.     document.writeln("<p>");
  34.  
  35.     document.writeln("<table width=100% border=2 cellpadding=5>");
  36.     document.writeln("<tr>");
  37.     document.writeln("<th width=20%><font size=-1>Mime Type</font></th>");
  38.     document.writeln("<th width=50%><font size=-1>Description</font></th>");
  39.     document.writeln("<th width=20%><font size=-1>Suffixes</font></th>");
  40.     document.writeln("<th><font size=-1>Enabled</th>");
  41.     document.writeln("</tr>");
  42.     numTypes = plugin.length;
  43.     for (j = 0; j < numTypes; j++)
  44.     {
  45.         mimetype = plugin[j];
  46.         
  47.         if (mimetype)
  48.         {
  49.             enabled = "No";
  50.             enabledPlugin = mimetype.enabledPlugin;
  51.             if (enabledPlugin && (enabledPlugin.name == plugin.name))
  52.                 enabled = "Yes";
  53.  
  54.             document.writeln("<tr align=center>");
  55.             document.writeln("<td>");
  56.             document.write(mimetype.type);
  57.             document.writeln("</td>");
  58.             document.writeln("<td>");
  59.             document.write(mimetype.description);
  60.             document.writeln("</td>");
  61.             document.writeln("<td>");
  62.             document.write(mimetype.suffixes);
  63.             document.writeln("</td>");
  64.             document.writeln("<td>");
  65.             document.writeln(enabled);
  66.             document.writeln("</td>");
  67.             document.writeln("</tr>");
  68.         }
  69.     }
  70.     
  71.     document.write("</table>");
  72.     document.write("<p><hr><p>");
  73. }
  74.  
  75. </SCRIPT>
  76. </BODY>
  77. </HTML>